#! /usr/bin/python
# -*- coding:  utf-8 -*-
#
# accoufer : cgi script to get transfer logs
# 
# Copyright S.Keim 2011
# Available under the MIT licence see the COPYING file


import accoufer
import os

def run():
    # logged user
    login, user = accoufer.userCookie()
        
    print "Content-Type: text/plain"
    print
    
    path = accoufer.logpath(login)
    try:
        f = open(path)
        print f.read()
    except IOError:
        pass

if __name__=="__main__":
    run()

